package com.ls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaotang
 * @since 2023-04-07
 */
@Data
@TableName("t_user_score")
@ApiModel(value = "UserScore对象", description = "")
public class UserScore implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("变动之前的积分")
      private Integer oldScore;

      @ApiModelProperty("变动之后的积分")
      private Integer newScore;

      @ApiModelProperty("积分变动场景：1.登录 2.购买 3.评论")
      private Integer action;

      @ApiModelProperty("描述")
      private String description;

      @ApiModelProperty("地址")
      private LocalDateTime createTime;
}
